package cn.edu.bitc;

public class Java_09 {
    public static void main(String[] args) {
        //目标：掌握逻辑运算符的使用
        double size = 6.8;
        int shortage = 16;
        boolean rs = size >= 6.5 & shortage >=8;
        System.out.println(rs);

        boolean rs2 = size >= 6.95 | shortage >= 8;
        System.out.println(rs2);

        System.out.println(!true);
        System.out.println(!false);
        System.out.println(! (2 > 1));

        System.out.println(true ^ true);
        System.out.println(false ^ false);
        System.out.println(true ^ false);
        System.out.println(false ^ true);
        System.out.println("--------------------------------------------");

        int i = 10;
        int j = 20;
        System.out.println(i > 100 && ++j > 99);
        System.out.println(j);

        int m = 10;
        int n = 30;
        System.out.println(m > 3 || ++n > 40);
        System.out.println(n);


    }
}
